import request from "@/utils/request";

// 获取医生的康复指导列表
export function getGuidance(data) {
  return request({
    url: `/api/GuidanceRecord/list`,
    method: "post",
    data,
  });
}

// 删除医生的康复指导
export function removeGuidance(recordId) {
  return request({
    url: `/api/GuidanceRecord/${recordId}`,
    method: "delete",
  });
}

// 新增医生的康复指导
export function addGuidance(data) {
  return request({
    url: "/api/GuidanceRecord/add",
    method: "post",
    data,
  });
}

// 更新医生的康复指导
export function updateGuidance(data) {
  return request({
    url: "/api/GuidanceRecord/update",
    method: "post",
    data,
  });
}
